<%--

  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the latest version of the GNU Lesser General
  Public License as published by the Free Software Foundation;

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this program (LICENSE.txt); if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

--%>
<%@ page errorPage="/WEB-INF/jsp/error.jsp"
    contentType="text/html; charset=utf-8"
%>

<%@ include file="page-init.jsp" %>
<%@ page import="org.jamwiki.model.*,org.jamwiki.utils.*" %>
 
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td width="0" class="word-orange" align="center"><%@ include file="navigation-menu.jsp" %></td>   
           </tr>  
      </table>
     <table width="98%"><tr><td>
		 <div id="change">
			
			
			
			<form name="num-changes" method="get" action="<jamwiki:link value="Special:Contributions" />">
			<input type="hidden" name="contributor" value="<c:out value="${contributor}" />" />
			<%int i=1; %>
			<table width="98%"  border="0"  cellpadding="0" cellspacing="1" bgcolor="#dddddd">
			 <tr><td width="5%" class="table-title">序号</td><td width="50%" class="table-title">主题</td><td width="17%" class="table-title">发布时间</td><td width="28%" class="table-title">操作</td></tr>
			<c:forEach items="${contributions}" var="change">
	          <tr class="<%if(i%2==0){ %>table-tr1<%}else{ %>table-tr2<%} %>">
	            <td width="4%" height="25" align="center"  ><%=i++ %></td>
	            <td width="51%" align="left" >
	             <jamwiki:watchlist topic="${change.topicName}">
					<c:if test="${!change.delete}"><jamwiki:link value="${change.topicName}" text="${change.topicSimpleName}" /></c:if>
					<c:if test="${change.delete}"><c:out value="${change.topicName}" /></c:if>
				 </jamwiki:watchlist>
	            </td>
	            <td width="17%" align="center"  ><f:formatDate value="${change.editDate}" type="both" pattern="yyyy-MM-dd" /></td>
	            <td width="28%" align="center"  class="txt-blue" >
	              <jamwiki:link value="Special:Diff"><jamwiki:linkParam key="topic" value="${change.topicName}" />
					<jamwiki:linkParam key="version2"><c:out value="${change.previousTopicVersionId}" /></jamwiki:linkParam>
					<jamwiki:linkParam key="version1" value="${change.topicVersionId}" /><f:message key="common.caption.diff" /></jamwiki:link>
	              &nbsp;|&nbsp;
	              <jamwiki:link value="Special:History"><jamwiki:linkParam key="topic" value="${change.topicName}" /><f:message key="common.caption.history" /></jamwiki:link>   
	            </td>
	          </tr>
			
		     </c:forEach>
		 </table>
		</form>
			<div class="message"><f:message key="common.caption.view" />: <jamwiki:pagination total="${numContributions}" rootUrl="Special:Contributions?contributor=${contributor}" /></div>
			</div>
		</td></tr></table>

  